#include "vecteur3d.hpp"

#include <iostream>

Vecteur3D::Vecteur3D(float c1, float c2, float c3) {
    this->x = c1;
    this->y = c2;
    this->z = c3;
}

void Vecteur3D::print(void) const {
    std::cout << "(x,y,z) = (" << this->x << "," << this->y << "," << this->z << ")\n";
}

bool Vecteur3D::operator==(const Vecteur3D& rhs) {
    return this->x == rhs.x && this->y == rhs.y && this->z == rhs.z;
}

std::ostream& operator<<(std::ostream& os, const Vecteur3D& v) {
    os << "(" << v.x << "," << v.y << "," << v.z << ")";
    return os;
}
